<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'Admin');
?>
<link href="<?php echo CSS_PATH?>dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>dialog.js"></script>
<script type="text/javascript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#name").formValidator({onshow:"<?php echo L('input').L('posid_name')?>",onfocus:"<?php echo L('posid_name').L('not_empty')?>"}).inputValidator({min:1,max:999,onerror:"<?php echo L('posid_name').L('not_empty')?>"});
	$("#maxnum").formValidator({onshow:"<?php echo L('input').L('maxnum')?>",onfocus:"<?php echo L('maxnum').L('not_empty')?>"}).inputValidator({min:1,onerror:"<?php echo L('maxnum').L('not_empty')?>"}).regexValidator({datatype:'enum',regexp:'intege1',onerror:'<?php echo L('maxnum').L('not_empty')?>'}).defaultPassed();;			
})
//-->
</script>
<div class="pad_10">
<div class="common-form">
<form name="myform" action="<?php echo U(ACTION_NAME) ?>" method="post" id="myform">
<table width="100%" class="table_form contentWrap">
<tr>
	<td width="80">所属任务</td> 
	<td><input type="hidden" name="aid" value="3" id="aid_id"><input type="text" value="" class="input-text" id="aid_text" disabled></input><input type="button" class="button" onclick="omnipotent('selectid','<?php echo U('Document/public_documentlist', array('obj' => 'aid')) ?>','选择相关产品',1);" value="选择任务"></td>
</tr>
<tr>
	<td>打码时间</td> 
	<td><?php echo $form::date('yard_time', dgmdate(NOW_TIME, 'Y-m-d')); ?></td>
</tr>

<tr>
	<td>数据文件</td> 
	<td><?php echo $form::upfiles('file', '', '', '', '', '', '', '', 'xls'); ?></td>
</tr>

</table>
    <div class="bk10"></div>
    <input name="dosubmit" type="submit" value="&nbsp;确定导入&nbsp;" class="button" id="dosubmit">
</form>
<div class="bk10"></div>
<div class="explain-col">
<font color="red">请仔细检查导入的数据是否正确，否则有可能造成意外损失。</font>
</div>
</div>
</div>
<script type="text/javascript">
function category_load(obj) {
	var modelid = $(obj).attr('value');
	$.get('<?php echo U('Category/public_category_load') ?>', {modelid:modelid}, function(data){
			$('#load_catid').html(data);
		}
	);
}
</script>
</body>
</html>